# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit mercurial distutils

DESCRIPTION="Zabbix Templates Collection"
HOMEPAGE="http://trac.greenmice.info/ztc/"
#SRC_URI="http://downloads.greenmice.info/products/ztc/ztc-${PV}.tar.bz2"
EHG_REPO_URI="http://bitbucket.org/xy2/ztc"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="postgres mysql nginx apache2"

DEPEND="
	>=dev-lang/python-2.4
	sys-apps/smartmontools
	postgres? (
		>=dev-db/postgresql-server-8.3
		dev-python/psycopg
	)
	mysql? (
		dev-python/mysql-python
		>=dev-db/mysql-5.0
	)
	nginx? (
		|| ( www-servers/nginx[status]
		www-servers/nginx[nginx_modules_http_stub_status] )
	)
	apache2? (
		www-servers/apache[apache2_modules_status]
	)
	net-analyzer/zabbix[agent]
"
RDEPEND="$DEPEND"

src_compile() {
	cd ztc
	distutils_src_compile
}

src_install() {
	cd ztc
	distutils_src_install                                                                                                                                    
	dodoc README
	dodoc REQUIREMENTS
}

